package com.blacksea.authserver.web.response;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * TokenResponse
 *
 * @author blacksea3(jxt) 2021/4/17 20:04
 */

@Data
@NoArgsConstructor
public class TokenResponse {
    String accessToken;

    String tokenType;

    Integer expiresIn;

    String refreshToken;

    String state;

    String message;

    public TokenResponse(String accessToken, String tokenType, Integer expiresIn,
        String refreshToken, ResponseStateEnum responseStateEnum, String message) {
        this.accessToken = accessToken;
        this.tokenType = tokenType;
        this.expiresIn = expiresIn;
        this.refreshToken = refreshToken;
        this.state = responseStateEnum.getStr();
        this.message = message;
    }
}
